package sorting

import (
	"math/rand"
	"time"
)

//返回指定长度和最大数字的int数组
func Init(length, maxNum int) ( *[] int) {

	arra := make([] int, length)

	rand.Seed(time.Now().UnixNano())

	for i := 0; i < length; i++ {

		(arra)[i] = rand.Intn(maxNum)

	}

	return &arra;
}
